package com.ls.blog.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ls.blog.dto.TTagDTO;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lishun
 * @since 2022-01-14
 */
@Data
public class TBlogVO  {

    private Integer id;

    private String title;

    private String description;

    private String firstPicture;

    private String content;

    private String flag;

    private Boolean published;

    private Boolean appreciation;

    private Boolean commentabled;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "Asia/ShangHai")
    private LocalDateTime createTime;

    private Boolean recommend;

    private Boolean shareStatement;

    private LocalDateTime updateTime;

    private Integer views;

    private Long typeId;

    private Long userId;

    private Long commentCount;

    private Boolean isDelete;

    private List<TTagDTO> tTagDTOList;

}
